package com.naizhuai.Model;

import android.content.Context;
import android.support.annotation.NonNull;

import com.naizhuai.Model.db.AppDatabase;
import com.naizhuai.Model.db.ainote.LocalNoteData;
import com.naizhuai.Model.db.ainote.NoteRepository;
import com.naizhuai.Model.db.managenote.ManageNoteData;
import com.naizhuai.Model.db.managenote.ManageNoteRepository;
import com.naizhuai.Model.db.search.LocalSearchData;
import com.naizhuai.Model.db.search.SearchRepository;
import com.naizhuai.Model.db.user.LocalUserData;
import com.naizhuai.Model.db.user.RemoteUserData;
import com.naizhuai.Model.db.user.UserRepository;

import static com.naizhuai.util.AutoClearedValue.checkNotNull;

/**
 * @author：lichenxi
 * @date 2018/2/25 00
 * email：525603977@qq.com
 * Fighting
 */
public class ModelProvider {
    public static NoteRepository provideNotesRepository() {
        return NoteRepository.getInstance(LocalNoteData.getInstance(),
                null);
    }

    public static UserRepository provideUserRepository() {
        return UserRepository.getInstance(LocalUserData.getInstance(),
                new RemoteUserData());
    }
    public static SearchRepository provideSearchRepository() {
        return SearchRepository.getInstance(LocalSearchData.getInstance(),
               null);
    }
    public static ManageNoteRepository provideManageNoteRepository() {
        return ManageNoteRepository.getInstance(ManageNoteData.getInstance(),
               null);
    }
}
